package com.atguigu.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 黄石杨  on 2022/3/8
 * @version 1.0
 */

//@ResponseBody
@Controller

//@RestController   是@Controller和@ResponseBody的集合体
public class HelloController {

    @ResponseBody
    @RequestMapping("/hello")
    public String handle01(){
        return "Hello,Spring Boot2!佻好";
    }
}
